package org.example.petitionplatformsystem.service;

import org.example.petitionplatformsystem.dao.model.Users;

import java.util.List;

public interface UsersService {
    public Users GetUsersById(long id);
    public Users AddUsers(Users user);
    public void DeleteUsers(long userId);
    public Users UpdateUsers(Users user);
    public List<Users> GetAllUsers();

    public Users GetUsersByPhoneNumber(String phoneNumber);
    public void UpdateUsersPassword(Long userId,String password);
    public boolean onlyOnePhoneNumber(String phoneNumber);

}
